package com.nyist.diseasepreventionserver.common;

import lombok.Getter;

/**
 * @Author 杜習田
 * @Description 常用返回常量含义类
 * @Date 2020/2/27 10:02
 * @Param 
 * @return 
 **/
@Getter
public enum ResponseCode {


    news_data_error(1,"获取新闻失败"),
    trip_data_error(1,"未找到该车次或航班"),
    Epidemic_data_error(1,"疫情数据获取失败"),
    login_password_error(1,"密码错误"),
    ID_no_exists(1,"学号不存在"),
    login_success(0,"登入成功"),
    ID_exists(1,"学号已存在"),
    param_error(1,"参数不正确"),
    register_success(0,"注册成功"),
    healthDaily_no_exists(1,"该用户未填写健康日报"),


    success(0,"成功"),
    error(1,"失败");


    private final int code;
    private final String desc;


    ResponseCode(int code, String desc){
        this.code = code;
        this.desc = desc;
    }
}
